﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Cms.Core.Infrastructure.Extension
{
  public   static class ArrayExtensions
    {
        public static string ToJoin<T>(this T[] values, string separator = ",")
        {
            values.NotNull(nameof(values));

            //values.CheckNotNullOrEmpty(nameof(values));

            return string.Join(separator, values);
        }
    }
}
